import instance from "@/api/requests.ts";
import DictionaryConstants from "@/const/DictionaryConstants";
import { GetCategoryParamsModel } from "@/model/HomePge/Product/ProductCategoryModel.ts";

const ApiConst = DictionaryConstants.ApiConst;
export const CategoryApi = {
      getAllCategory(params: GetCategoryParamsModel) {
        return instance.get(`${ApiConst.PRODUCT}/category/categoryTree/${params.pageNumber}/${params.pageSize}/`,{
            headers: {
                "IS_SHOW_NOTIFICATION": DictionaryConstants.AxiosConfigConst.IS_SHOW_NOTIFICATION.FALSE.value,
            },
        });
    },
};
